
<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <link rel="stylesheet" href="prism.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div id="header">
      <div class="doc-title"><a href="folktale.html"><span class="doc-title"><span class="product-name">Folktale</span><span class="version">v2.1.0</span></span></a><ul class="navigation"><li class="navigation-item"><a href="https://github.com/origamitower/folktale" title="">GitHub</a></li><li class="navigation-item"><a href="/docs/support/" title="">Support</a></li><li class="navigation-item"><a href="/docs/v2.1.0/contributing/" title="">Contributing</a></li></ul></div>
    </div>
    <div id="content-wrapper"><div id="content-panel"><h1 class="entity-title">(Anonymous)</h1><div class="highlight-summary"><div><p>The container for instance methods for the TaskExecution structure.</p>
</div></div><div class="deprecation-section"><strong class="deprecation-title">This feature is experimental!</strong><p>This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.</p></div><h2 class="section-title">Documentation</h2><div class="documentation"><div><p>The container for instance methods for the TaskExecution structure.</p>
</div></div><div class="members"><h2 class="section-title" id="properties">Properties</h2><div class="member-category"><h3 class="category" id="cat-cancelling-tasks">Cancelling tasks</h3><div class="member-list"><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.task._taskexecution.prototype.cancel.html">cancel()</a><div class="doc-summary"><div><p>Cancels a task execution. Does nothing if the task has already been resolved.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-extracting-eventual-values">Extracting eventual values</h3><div class="member-list"><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.task._taskexecution.prototype.future.html">future()</a><div class="doc-summary"><div><p>Gets the eventual value of a Task as a Folktale <code>Future</code>.</p>
</div></div><div class="special-tags"></div></div><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.task._taskexecution.prototype.promise.html">promise()</a><div class="doc-summary"><div><p>Gets the eventual value of the task as a JavaScript&#39;s <code>Promise</code>.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-reacting-to-task-state-transitions">Reacting to Task state transitions</h3><div class="member-list"><div class="member"><a class="member-name" href="-unknown-module-.folktale.concurrency.task._taskexecution.prototype.listen.html">listen()</a><div class="doc-summary"><div><p>Adds a functions to be called when the task settles for each possible state it can transition to.</p>
</div></div><div class="special-tags"></div></div></div></div><div class="member-category"><h3 class="category" id="cat-types">Types</h3><div class="member-list"><div class="member"><a class="member-name" href="folktale.concurrency.task._task-execution._taskexecution.html">constructor()</a><div class="doc-summary"><div><p>Represents the execution of a Task, with methods to cancel it, react to its
results, and retrieve its eventual value. TaskExecution objects aren&#39;t created
directly by users, but instead returned as a result from Task&#39;s <code>run()</code> method.
b</p>
</div></div><div class="special-tags"><span class="tagged experimental">Experimental</span></div></div></div></div></div></div><div id="meta-panel"><div class="meta-section"><div class="meta-field"><strong class="meta-field-title">Stability</strong><div class="meta-field-value">experimental</div></div></div><div class="table-of-contents"><div class="meta-section-title">On This Page</div><ul class="toc-list level-1"><li class="toc-item"><span class="no-anchor">Documentation</span><ul class="toc-list level-2"></ul></li><li class="toc-item"><a href="#properties">Properties</a><ul class="toc-list level-2"><li class="toc-item"><a href="#cat-cancelling-tasks">Cancelling tasks</a></li><li class="toc-item"><a href="#cat-extracting-eventual-values">Extracting eventual values</a></li><li class="toc-item"><a href="#cat-reacting-to-task-state-transitions">Reacting to Task state transitions</a></li><li class="toc-item"><a href="#cat-types">Types</a></li></ul></li></ul></div><div class="meta-section"><strong class="meta-section-title">Authors</strong><div class="meta-field"><strong class="meta-field-title">Authors</strong><div class="meta-field-value"><ul class="meta-list"><li>Quildreen Motta</li></ul></div></div><div class="meta-field"><strong class="meta-field-title">Maintainers</strong><div class="meta-field-value"><ul class="meta-list"><li>Quildreen Motta &lt;queen@robotlolita.me&gt; (http://robotlolita.me/)</li></ul></div></div></div></div></div>
    <script>
void function() {
  var xs = document.querySelectorAll('.documentation pre code');
  for (var i = 0; i < xs.length; ++i) {
    xs[i].className = 'language-javascript code-block';
  }
}()
    </script>
    <script src="prism.js"></script>
  </body>
</html>